<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">

<TITLE>Quick start: extracting files from the command line</TITLE>

<link href="style.css" rel="stylesheet" type="text/css">
</HEAD>

<BODY BGCOLOR="#FFFFFF" TEXT="#000000">

<OBJECT TYPE="application/x-oleobject" CLASSID="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">

	<PARAM NAME="Keyword" VALUE="Quick start: extracting files from the
command line">
</OBJECT>

<P class="title"><A NAME="HELPSimpleCommandLineExtracting"></A>Quick
start: extracting files from the command line<hr></P>

<P>Common command line syntax to extract files with full paths:</P>


<p class="sample">WinRAR X [ -switches ] &lt;Archive&gt; [ Files ] [ @File lists ] [ Destination folder\ ]</p>

<P>To extract files, ignoring paths:</P>

<p class="sample">WinRAR E [ -switches ] &lt;Archive&gt; [ Files ] [ @File lists ] [ Destination folder\ ]</p>

<P>For example if you wish extract the file <B>LETTER.TXT</B> to the
current folder from the archive<B> LETTERS.RAR</B>, use the following
command:</P>

<p class="sample">WinRAR X LETTERS.RAR LETTER.TXT</p>

<P>Archive extension is optional and may be omitted.</P>

<P>The next command extracts all <B>*.WAV</B> files from the archive
<B>Songs</B> to the folder <B>Audio</B>:</P>

<p class="sample">WinRAR X Songs *.WAV Audio\</p>

<P>It is also possible to list the files to be extracted in a file,
rather than listing them in the command line. In this case the name
of text file, containing the list of files to be extracted, must be given
in the command line. This is indicated by placing the symbol <B>@</B>
before this file name. Thus, you can create a file <B>Binaries</B>,
containing the strings <B>*.exe</B> and <B>*.com</B> and execute
the command:</P>

<p class="sample">WinRAR X TOOLS @Binaries</p>

<P>to extract all files with <B>EXE</B> and <B>COM</B> extensions
from the archive <B>TOOLS</B> to the current folder.</P>

<P>Window containing statistics is displayed during the extraction process.
If you wish to break extraction, click on "Cancel" button in the command
window. You may press "Background" button in this window to minimize WinRAR
to the tray. If extraction is completed without problems, WinRAR terminates.
Diagnostic message window is displayed in case of error.</P>

<P>See <A HREF="HELPCommandLineSyntax.htm"><B>Command-line interface</B>
</A> for detailed commands and switches description.</P>

</BODY>
</HTML>
